<style type="text/css">

</style>
<div id="content" class="">
        <div class="row">
          <div class="col-md-12">
            <!-- Input Fields -->
            <div class="panel">
              <div class="panel-heading">
                <span class="panel-title">内容列表</span>
              </div>
              <div class="panel-body">
              <div class="panel">

              <!-- message toolbar header -->
              <div class="panel-menu" style='border-left:1px solid #e2e2e2; border-right:1px solid #e2e2e2;'>
                <div class="row">
                  <div class="hidden-xs hidden-sm col-md-2">
                    <div class="btn-group">
                      <button onclick="checkall('arcinput')" type="button" class="btn btn-default light" title="反选">
                        <i class="fa fa-check"> 反选</i></button>
                    </div>

                    <div class="btn-group">
                      <a href="{:U('Column/addVideo')}" class="btn btn-default light " title="新增信息">
                        <i class="fa fa-file-o"> 新增</i></a>
                    </div>
                  </div>

				<!--
                  <div class="btn-group admin-form col-md-3" style="margin-bottom: 0;">
                      <label class="field select">
                          <select id="selectID" onchange="selectCid(this.value)" name="selectID" style="height: 38px;">
                            <option value="0">所有信息</option>
                             {$select}
                          </select>
                          <i class="arrow double"></i>
                      </label>
                    </div>
				 -->

                  <div class="col-xs-12 col-md-7 text-right">
                    <div class="btn-group mr10">
                      <!--<button type="button" class="btn btn-default light hidden-xs" title="推荐"><i class="fa fa-star"></i></button>
                      <button type="button" class="btn btn-default light hidden-xs"><i class="fa fa-calendar"></i></button>-->
                      <button onclick="updatesort('{:U('Ajax/videoSort')}','inputsort')"  type="button" class="btn btn-default light hidden-xs"><i class="fa fa-refresh">排序</i></button>
                      <button onclick="allaction('{:U('Ajax/delVideoInfo')}','arcinput','data-id')" type="button" class="btn btn-default light" title="删除">
                        <i class="fa fa-trash"> 删除</i>
                      </button>
                    </div>

                    <div class="btn-group">
                      <!--
                      <a href= "" class="btn btn-default light" title="上一页"><i class="fa fa-chevron-left"></i></a>
                      <a href= "" class="btn btn-default light" title="下一页"><i class="fa fa-chevron-right"></i></a>
                    -->
                    </div>
                  </div>
                </div>
              </div>

              <!-- message listings table -->
              <div class="panel-body pn">
                <table id="message-table" class="table admin-form theme-warning tc-checkbox-1">
                  <thead>
                    <tr class="">
                      <th class="text-center  hidden-xs" width="5%">Select</th>
                      <th class="text-center  hidden-xs" width="3%">ID</th>
                      <th class="text-center hidden-xs" width="7%">视频配图</th>
                      <th class="hidden-xs" width="20%">名称</th>
                      <th class="text-center hidden-xs" width="5%"><!--点击量--></th>
                      <th class="text-center  hidden-xs" width="7%"><!--更新时间--></th>
                      <th class="text-center  hidden-xs" width="8%">操作</th>
                      <th class="text-center  hidden-xs" width="5%">顺序</th>
                    </tr>
                  </thead>
                  <tbody>


                    <?php
                     if($videos){
                      foreach($videos as $k => $v){   ?>

                        <tr class="message-unread">
                          <td class="hidden-xs hidden-xs">
                            <label class="option block mn">
                              <input class="arcinput" type="checkbox" name="mobileos" data-id="{$v['id']}">
                              <span class="checkbox mn"></span>
                            </label>
                          </td>
                          <td class="text-center">{$v['id']}</td>
                          <td class="text-center">
                            <img class="img-responsive mw40 ib mr10" title="{$v['name']}" src="{$v['image']}">
                           </td>
                          <td class="">{$v['name']}</td>
                          <td class="text-center hidden-xs"></td>
                          <td class="text-center hidden-xs"></td>
                          <td class="text-center  fw600">
                              <div class="btn-group">
                                <a href="{:U('Column/addVideo')}" title ="新增" class="btn btn-xs btn-success">
                                  <i class="fa">新增</i>
                                </a>
                                <a href="{:U('Column/updateVideoInfo',array('id'=>$v['id']))}" title ="修改" class="btn btn-xs btn-warning ">
                                  <i class="fa" >修改</i>
                                </a>
                                <a href="{:U('Column/delVideoInfo',array('id'=>$v['id']))}" class="btn btn-xs btn-danger " title ="删除">
                                  <i class="fa" >删除</i>
                                </a>
                              </div>
                          </td>
                          <td class="text-center">
                            <input type="text" class="inputsort gui-input" style="width:40px;height:22px;text-align:center;" value="{$v['sort']}" key="{$v['id']}-"></td>
                        </tr>

                    <?php  }}?>

                  </tbody>
                </table>
              </div>

            <div >
             <div class="pagination pull-left"></div>
              <ul class="pagination pull-right">
                {$page}
              </ul>
            </div>
            </div>
              </div>
            </div>
          </div>
        </div>
</div>
<script type="text/javascript">
  function selectCid( val){
      var url = "{:U('Column/arclist',array('cid'=>no))}";
      url = url.replace('no',val);
      window.location.href=url;
  }
</script>
